package org.jw.testemunhopublico.repository.dao;

import java.util.List;

public interface GenericDaoIF <T> {
	
	public void beginTransaction();

	public void closeTransaction();

	public void commit();

	public void commitAndCloseTransaction();

	public void delete(T entity);

	public T find(int entityID);

	public List<T> findAll();

	public T findReferenceOnly(int entityID);

	public void flush();

	public void joinTransaction();

	public void rollback();

	public void save(T entity);

	public T update(T entity);
	
	public void onlySave(T entity);

	public T onlyUpdate(T entity);

}
